﻿using FluentValidation;
using Mes.Domain.BoundedContext;

namespace Mes.Application.Web.Validators
{
    public class PagedInputValidator : AbstractValidator<PagedInput>
    {
        public PagedInputValidator()
        {
            RuleFor(x => x.PageNo).GreaterThanOrEqualTo(1).WithMessage("pageNo必须大于0");
            RuleFor(x => x.PageSize).GreaterThanOrEqualTo(1).WithMessage("pageSize必须大于0");
        }
    }
}
